<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app" v-mydir>
		</div>
		<script type="text/javascript">
			let test = {}
			test.install = function (Vue,option){
				console.log(option);
				Vue.directive('mydir',{
					bind(el,val){
						console.log(el,val)
						el.style="height:100px;width:100px;background-color:#001"
					}
				})
			}
			Vue.use(test,{is:true})
			var vm = new Vue({
				el:'#app'
			})
		</script>
		<style type="text/css">
		</style>
	</body>
</html>
